﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Chapter19.Example02
{
    public partial class Registration : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void buttonSubmit_Click(object sender, EventArgs e)
        {
            var selectedEvent = dropDownListEvents.SelectedValue;
            var firstName = textFirstName.Text;
            var lastName = textLastName.Text;
            var email = textEmail.Text;
            labelResult.Text = string.Format("{1} {2} 选择的事件是 {2}", firstName, lastName, selectedEvent);
        }
    }
}